package com.xwaf.platform.web.controller.pay;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xwaf.platform.common.api.CommonResponse;
import com.xwaf.platform.common.web.BaseController;
import com.xwaf.platform.system.api.service.pay.TccService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import springfox.documentation.annotations.ApiIgnore;

/**
 * <p>
 * <p>
 * 
 * @author 李聪 <br>
 * @email xwaf_love@yeah.net <br>
 * @since JDK 1.8<br>
 * @date 2020年1月15日 上午9:28:05 <br>
 * @see 无<br>
 *      Copyright (c) 2020, xwaf_love@yeah.net All Rights Reserved.<br>
 */
@ApiIgnore
@RestController
@Api(tags = "TCC", hidden = true)
@RequestMapping(value = "/x/tcc")
public class TccController extends BaseController {

	@Autowired
	private TccService tccService;

	@ApiOperation(value = "tcc1")
	@PostMapping(value = "/tcc1", produces = "application/json;charset=UTF-8")
	public CommonResponse tcc1() throws Exception {
		boolean tcc1 = tccService.createOrder();
		return CommonResponse.createCommonResponse(tcc1);
	}
}
